package com.example.backend.annotation.constraint;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Null;

@Null(message = "字段必须为空")
@Min(value = 0, message = "字段只能是0或1")
@Max(value = 1, message = "字段只能是0或1")
public @interface NullableZeroOne {
}
